<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="kaiin.KaiinBeans"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/css" />
<link rel="stylesheet" href="../src/jsp/css/base.css" type="text/css" media="all" />
<link rel="stylesheet" href="../src/jsp/css/cart.css" type="text/css" media="all" />


<title>カートに追加されました</title>
</head>
ただいま作業中
<body>
<%KaiinBeans kbean = (KaiinBeans)session.getAttribute("kbean");
if(kbean == null) kbean = new KaiinBeans();
%>
<div id="wrapper">

<div id="header">
	<h1><a href="../top"><img src="../src/img/kyoutu/head4.jpg" width="765px" height="110" alt="うるまかりゆし商店"/></a></h1>
	<ul>
		<li id="top"><a href="../top">トップページ</a></li>

    <li id="foods"><a href="../shouhin/CateSQL?cateText=1" >食品</a></li>
    <li id="craft"><a href="../shouhin/CateSQL?cateText=2" >民芸品</a></li>
    <li id="book_cd"><a href="../shouhin/CateSQL?cateText=3" >本・CD</a></li>

		<li id="info"><span>カートの中身</span></li>
		<li id="faq"><a href="#">お問い合わせ</a></li>
	</ul>
</div><!-- header_END -->

<div id="pagebody">

<div id="sidebar">

<%if(!kbean.isLogIn()){ %>
	<h2>ログイン</h2>
<div id="login">
	<form action = "kaiin/login">
	<label class="sidelabel" for="identify"">お客様番号</label>
	<input type="text" id="identify" name="identify"></input>
	<label class="sidelabel" for="pass">パスワード</label>
	<input type="text" id="pass" name="pass"></input>
	<input type="submit" id="loginsub" value="送信" />
	</form>
	<a href="reg">新規登録</a>
</div><!-- login_END -->
<%}else{ %>
<div id="login_mem">
	<%=kbean.getSimei() %>さん！ようこそ！
	<br />
	<a href="kaiin/logout">ログアウト</a>
</div>
<%} %>

<div class="ad">
 <img src="" alt="広告スペース1" />

</div>

<div class="ad">
 <img src="" alt="広告スペース2" />
</div>

</div><!-- sidebar_END -->
<div id="content">
	<h2>カートの確認</h2>

	<form action="">
		<table id="products">
		<tr>
			<th>商品</th><th class="num">数量</th><th class="num">単価</th><th class="num">小計</th><th></th>
		</tr>

<!-- ■商品ごとのタグ<tr>～</tr>■ -->
<%
int inum =  Integer.parseInt((String) request.getAttribute( "bNUM" ));
int iprice =  Integer.parseInt((String) request.getAttribute( "bNEDAN" ));

int iCount = 5;//カートボタン押下回数
for( int i = 0; i < iCount; i++){
%>
		<tr>
			<td><em><%=request.getAttribute("bNAME") %><!-- ★商品名★ --></em></td>
			<td class="num"><%=request.getAttribute("bNUM") %><!-- ★購入個数★ --></td>
			<td class="num"><%=request.getAttribute("bNEDAN") %><!-- ★単価★ --></td>
			<td class="num"><% out.println( iprice * inum ); %><!-- ★小計★ --></td>

			<td class="del"><input type="button" class="button" value="削除" /></td>
		</tr>

<% } %>

<!-- ■商品ごとのタグ<tr>～</tr>■ -->

		<tr>
			<td class="hidden" colspan="2"></td>
			<th class="num">合計</th>
			<td class="num"><!-- ★小計★ --></td>
		</tr>

		<tr>
			<td class="hidden" colspan="2"></td>
			<th class="num">消費税</th>
			<td class="num">0.05<!-- ★消費税価格★ --></td>
		</tr>

		<tr>
			<td class="hidden" colspan="2"></td>
			<th class="num total">総合計</th>
			<td class="num total"><!-- ★合計価格★ --></td>
		</tr>
		</table>

		<!-- ■カートページ用HTML　cart_2.html■ -->
		<div class="submit">
			<p>上記の内容で宜しければ、ご注文手続きへ
			<input type="submit" value="ご注文手続き" />
			</p>
		</div>

		<div class="edit">
		<p>
		お買い物を続ける
		<input type="button" class="button" value="商品ページへ" />
		</p>
		</div>
	</form>


</div><!-- content_END -->
</div><!-- pagebody_END -->

<div id="footer">
	<ul>
		<li id="privacy"><a href="#" title="プライバシーポリシー">privacy</a></li>
		<li id="sitemap"><a href="#" title="サイトマップ">sitemap</a></li>
		<li id="info"><a href="#" title="お問い合わせ">info</a></li>
	</ul>

	<p>All rights reserved Nak Corporation &amp; Co.2010-2011</p>

</div><!-- footer_END -->
</div><!-- wrapper_END -->

</body>
</html>
